package com.techstar.api.pojo.subway;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 实时客流量
 * @date 2021年7月30日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "subway_realtime_traffic")
@org.hibernate.annotations.Table(appliesTo = "subway_realtime_traffic",comment="pbtp-3-实时客流量")
public class SubwayRealtimeTraffic {
//	@Id
//	@GeneratedValue(strategy = GenerationType.IDENTITY)
//	private Long id;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '线路标识'")
	private String lineId;
	@Column(columnDefinition="varchar(100) COMMENT '线路名称'")
	private String lineName;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计客流量'")
	private String accCount;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计进站客流量'")
	private String accInCount;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计出站客流量'")
	private String accOutCount;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计换乘客流量'")
	private String accTransferCount;
	@Column(columnDefinition="varchar(100) COMMENT '当年日均客流量'")
	private String avgCount;
	@Column(columnDefinition="varchar(100) COMMENT '当年日均客流量同比'")
	private String avgCountCsy;
	@Column(columnDefinition="datetime(0) COMMENT '业务更新时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}

